<?php
require_once 'conexion/conexion.php';

class insertarapar extends database 
{

public function insertaraparto($CANAPA,$AP){

	$AP = implode("|",$_POST["ap"]);

 $sql = "INSERT INTO ma_af_apartos ( MA_In_CantApartos,MA_V_TipoPoste)
 	 VALUES ('$CANAPA','$AP')";

     $conectarBD =$this->Conectar();
      mysqli_query($conectarBD,$sql) or die('no insertado'.mysqli_error($conectarBD));

      if($conectarBD){

header('location:MA_usoTierra.php');


      }
}

      }
?>